﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace CNVP.JShop.BLL
{
    public class CNVP_Template
    {
        DAL.CNVP_Template dal = new DAL.CNVP_Template();
        #region "读取信息"
        /// <summary>
        /// 读取信息
        /// </summary>
        /// <param name="TemplateID"></param>
        /// <returns></returns>
        public DataTable GetTemplateInfo(int TemplateID)
        {
            return dal.GetTemplateInfo(TemplateID);
        }
        /// <summary>
        /// 读取信息
        /// </summary>
        /// <param name="ColumnID"></param>
        /// <param name="TemplateType"></param>
        /// <param name="ProjectName"></param>
        /// <returns></returns>
        public DataTable GetTemplateInfo(int ColumnID, int TemplateType, string ProjectName)
        {
            return dal.GetTemplateInfo( ColumnID,TemplateType,ProjectName);
        }
        public DataTable GetTemplateInfo(string ColumnID, int TemplateType, string ProjectName)
        {
            return dal.GetTemplateInfo(ColumnID, TemplateType, ProjectName);
        }
        #endregion
        #region "添加信息"
        /// <summary>
        /// 添加模板
        /// </summary>
        /// <param name="ColumnID"></param>
        /// <param name="TemplateType"></param>
        /// <param name="ProjectName"></param>
        /// <param name="TemplateUrl"></param>
        public void TemplateAdd(int ColumnID, int TemplateType, string ProjectName, string TemplateUrl)
        {
            dal.TemplateAdd(ColumnID, TemplateType, ProjectName, TemplateUrl);
        }
        #endregion
        #region "删除信息"
        /// <summary>
        /// 删除模板
        /// </summary>
        /// <param name="TemplateID"></param>
        public void TemplateDel(int TemplateID)
        {
            dal.TemplateDel(TemplateID);
        }
        #endregion
    }
}
